{if condition="cookie('user')"}
        <div id="fh5co-offcanvas">
        <a href="#" class="fh5co-close-offcanvas js-fh5co-close-offcanvas"><span><i class="icon-cross3"></i> <span>Close</span></span></a>
        <div class="fh5co-bio">
            <figure>
                <img src="/static/index/images/person.jpg" alt="please choose your image" class="img-responsive">
            </figure>
            <h3 class="heading">About Me</h3>
            <h2>个人经历</h2>
                
            <ul class="fh5co-social">
                {volist name=":cookie('user')['exp']"  id="val"}
                   <li>{$val.des}</li>
                {/volist}
            </ul>
        </div>

        <div class="fh5co-menu">
            <div class="fh5co-box">
                <h3 class="heading">Categories</h3>
                <form method='post' action="{:url('user/edit')}">
                <ul>
                    <li>name:&nbsp&nbsp&nbsp&nbsp&nbsp
                       <input type='text' value="{:cookie('user')['name']}">
                    </li>
                    <li>t e l:&nbsp&nbsp&nbsp&nbsp&nbsp
                       <input type='text' value="{:cookie('user')['tel']}">
                    </li>
                    <li>emial:&nbsp&nbsp&nbsp&nbsp&nbsp
                       <input type='email' value="{:cookie('user')['email']}">
                    </li>
                    <li>join time:&nbsp&nbsp&nbsp&nbsp&nbsp
                        {:date('y-m-d h:i',cookie('user')['create_time'])}    
                    </li>
                    <li>
                        <div class="button">
                            <button type="submit" class="login-btn register-btn" id="button">
                                修改提交
                            </button>
                       </div>
                   </li>
                </ul>
            </form>
            </div>
            
        </div>
    </div>

    {/if}
    <!-- END #fh5co-offcanvas -->
    <header id="fh5co-header">
        
        <div class="container-fluid">

            <div class="row">
                <a href="#" class="js-fh5co-nav-toggle fh5co-nav-toggle"><i></i></a>
                <ul class="fh5co-social">
                    {if condition="cookie('user')"}
                    <li><a href="{:url('user/release')}">发布信息</a></li>
                    <li><a href="{:url('index/loginOut')}">退出登陆</a></li>
                    {else if/}
                    <li><a href="{:url('index/login')}">login</a></li>
                    <li><a href="{:url('index/register')}">register</a></li>
                    {/if}
                </ul>
                